﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Campus.Main.Basic.InsertValues
{
    public partial class Meslek : Default
    {
        public Meslek():base()
        {
            InitializeComponent();
            button2.Click += button2_Click;

        }

        public Meslek(List<string> aList):base(aList)
        {
            InitializeComponent();
            id = aList[0];
            textBox1.Text = aList[1];
        }

        protected override void button1_Click(object sender, EventArgs e)
        {
            const string profession = "profession";
            aToDb.UpdateTable(profession, "description", textBox1.Text, id);
            Close();
        }

    }
}
